From 469b5218cea7749256d3331cfda785485d8b1862 Mon Sep 17 00:00:00 2001 From: Jay Belanger Date: Sat, 21 Feb 2009 19:18:20 +0000 Subject: [PATCH] (math-use-emacs-fn): Make sure that the lisp number is in decimal. --- lisp/calc/calc-math.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/calc/calc-math.el b/lisp/calc/calc-math.el index 64c5465da3c..c8e8cc1f052 100644 --- a/lisp/calc/calc-math.el +++ b/lisp/calc/calc-math.el @@ -105,7 +105,9 @@ If this can't be done, return NIL." (math-read-number (number-to-string (funcall fn - (string-to-number (math-format-number (math-float x)))))) + (string-to-number + (let ((calc-number-radix 10)) + (math-format-number (math-float x))))))) (error nil)))))) (defun calc-sqrt (arg) -- 2.30.2